package com.magic.item.service;

import com.magic.common.pojo.PageResult;
import com.magic.item.pojo.Brand;

import java.util.List;

/**
 * Created by zhuqin on 2021/1/6
 */
public interface BrandService {
    PageResult<Brand> queryBrandByPageAndSort(Integer page, Integer rows, String sortBy, boolean desc, String key);
    
    void saveBrand(Brand brand, List<Long> cids);
    
    List<Brand> selectUpdateBrand(Long bid);
    
    List<Long> selectCategoryId(Long bid);
    
    void updateBrand(Brand brand, List<Long> cids);
    
    void deleteBrand(Long bid);
    
    List<Brand> queryBrandsByCid(Long cid);
    
    Brand queryBrandById(Long id);
}
